import { http, Response } from "@/api/http";

export interface QueryDictType { dictKey?: string }

// 根据字典类型获取字典数据
export function getDicts(data: QueryDictType): Promise<Response> {
  return http({
    url: '/jwcloud/system/sys_dictionary/query_all_dict',
    method: 'POST',
    data
  })
}

export default {
  getDicts,
}